FROM alpine
RUN apk add --update nginx curl bash && rm -rf /var/cache/apk/* \
    && mkdir /run/nginx && touch /run/nginx/nginx.pid

# 开放80端口
EXPOSE 80

 
# 启动nginx命令
CMD ["nginx", "-g", "daemon off;"]